Personally, I prefer to use lowercase_underscore for variable names, but otherwise I mostly follow ZF's convention. Update on 10 year ... ... <看更多>
Search
Search
Personally, I prefer to use lowercase_underscore for variable names, but otherwise I mostly follow ZF's convention. Update on 10 year ... ... <看更多>
Internally, PHP itself uses Underscores for variables and functions, camelCase for Methods, and PascalCase for Classes, as stated in this PHP ... ... <看更多>
User functions/methods naming conventions. Function names for user-level functions should be enclosed with in the PHP_FUNCTION() macro. They should be in ... ... <看更多>
What How Good Bad
Controller singular ArticleController ArticlesController
Route plural articles/1 article/1
Named route snake_case with dot notation users.show_active users.show‑active, show‑act... ... <看更多>